package com.wx.base.util;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import com.wx.base.util.jedis.JedisManager;
/**
 * 加载缓存到redis
 * @author lenovo
 *
 */
public class InstantiationTracingBeanPostProcessor implements ApplicationListener<ContextRefreshedEvent> {

	public void onApplicationEvent(ContextRefreshedEvent event) {
		if(event.getApplicationContext().getParent()!=null){
			JedisManager.getInstance();
			
		}
	}

}
